package com.situ.day12.exception;

public class BankDemo {

	public static void main(String[] args) {
		AccountAdmin accountAdmin = new AccountAdmin(001);
		System.out.println("存款500");
		accountAdmin.deposite(500);
		System.out.println("取钱100");
		try {
			accountAdmin.withdraw(100);
		} catch (MeiQianException e) {
			e.printStackTrace();
		}
		System.out.println(accountAdmin.getBalance());
		System.out.println("取款600");
		try {
			accountAdmin.withdraw(600);
		} catch (MeiQianException e) {
			e.printStackTrace();
		}
		System.out.println("end");
		
	}
}
